package com.commerceerp.system.mapper;

import com.commerceerp.system.entity.FxGoodInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FxGoodInfoMapper {

    Integer addFxGoodInfo(FxGoodInfo fxGoodInfo);

    List<Map> getFxGoodRecordByGoodState(@Param("oneLevelId")String oneLevelId,@Param("twoLevelId")String twoLevelId,@Param("goodName")String goodName,
                                         @Param("beginPrice")String beginPrice,@Param("endPrice")String endPrice,@Param("beginTime")String beginTime,
                                         @Param("endTime")String endTime,@Param("goodState")String goodState,@Param("nowSDate")String nowSDate,
                                         @Param("nowEDate")String nowEDate,@Param("historyDate")String historyDate);

    Integer upddateFxGoodInfo(FxGoodInfo fxGoodInfo);

    List<Map> getAllFxGoodInfoByUser(@Param("beginTime")String beginTime,@Param("endTime")String endTime,@Param("goodName")String goodName,
                                     @Param("loginUserId")String loginUserId,@Param("levelName")String levelName);

    Integer deleteFxGoodInfo(String good_id);

    List<Map> getFxIndexGoodInfo(@Param("goodName")String goodName,@Param("levelName")String levelName,@Param("beginTime")String beginTime,@Param("endTime")String endTime);

    Map<String,Object> getDetailFxGoodInfoByGoodId(String goodId);

    String getFxOutGoodUserId(String goodId);

}
